import Vue from 'vue'

import widgetTextOption from './text/widget-text-option'
import widgetNumOption from './text/widget-num-option'
import widgetDateOption from './text/widget-date-option'
import widgetButtonOption from './text/widget-button-option'
import widgetImageOption from './text/widget-image-option'
import widgetVideoOption from './text/widget-video-option'
import widgetTabOption from './text/widget-tab-option'

import scrollTableOption from './table/scroll-table-option'

import border01Option from './border/border01-option'
import border02Option from './border/border02-option'
import border03Option from './border/border03-option'
import border04Option from './border/border04-option'
import border05Option from './border/border05-option'
import border06Option from './border/border06-option'
import border07Option from './border/border07-option'
import border08Option from './border/border08-option'
import border09Option from './border/border09-option'
import border10Option from './border/border10-option'
import border11Option from './border/border11-option'
import border12Option from './border/border12-option'
import border13Option from './border/border13-option'

import chart from './chart'

const widgets = {
  widgetTextOption,
  widgetNumOption,
  widgetDateOption,
  widgetButtonOption,
  widgetImageOption,
  widgetVideoOption,
  widgetTabOption,

  scrollTableOption,

  border01Option,
  border02Option,
  border03Option,
  border04Option,
  border05Option,
  border06Option,
  border07Option,
  border08Option,
  border09Option,
  border10Option,
  border11Option,
  border12Option,
  border13Option,
  ...chart
}

Object.keys(widgets).forEach(key => {
  Vue.component(key, widgets[key]);
});
